import http from '@/utils/http'
const env = import.meta.env
const BASE_URL = env.PROD ? `${env.VITE_API_BASE_URL}/api` : '/api'

/** @desc 平台数据-京东 */
export function platformDataJd(params: any) {
  return http.get(`${BASE_URL}/v1/jdDataStatistic/index`, params)
}

/** @desc 平台数据-淘宝 */
export function platformDataTb(params: any) {
  return http.get(`${BASE_URL}/v1/tbDataStatistic/index`, params)
}

/** @desc 平台数据导入-京东 */
export function platformDataJdImport(params: any) {
  return http.post(`${BASE_URL}/v1/jdDataStatistic/import`, params, {}, 'blob')
}
